﻿/*checked 样式*/
.wrapper {
    margin-bottom: 10px;
}

.box {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    position: relative;
    border: 2px solid orange;
    vertical-align: middle;
}

    .box input {
        opacity: 0;
        position: absolute;
        height: 20px;
        width: 20px;
        top: -3px;
        left: -3px;
        z-index: 100;
        cursor: pointer;
    }

    .box span {
        position: absolute;
        top: -10px;
        right: 3px;
        font-size: 30px;
        font-weight: bold;
        font-family: Arial;
        -webkit-transform: rotate(30deg);
        transform: rotate(30deg);
        color: orange;
        z-index: 2;
    }

input[type="checkbox"] + span {
    opacity: 0;
}

input[type="checkbox"]:checked + span {
    opacity: 1;
}


/*radio 样式*/
input[type=radio], input[type=checkbox] {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin-left: 5px;
    -webkit-appearance: none;
    background-color: transparent;
    border: 0;
    outline: 0 !important;
    line-height: 20px;
    color: #d8d8d8;
}

    input[type=radio]:after {
        content: "";
        display: block;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        text-align: center;
        line-height: 14px;
        font-size: 16px;
        color: #fff;
        border: 2px solid #ddd;
        background-color: #fff;
        box-sizing: border-box;
    }

    input[type=checkbox]:after {
        content: "";
        display: block;
        width: 20px;
        height: 20px;
        text-align: center;
        line-height: 14px;
        font-size: 16px;
        color: #fff;
        border: 2px solid #ddd;
        background-color: #fff;
        box-sizing: border-box;
    }

    input[type=checkbox]:checked:after {
        border: 4px solid #ddd;
        background-color: #37AF6E;
    }

    input[type=radio]:checked:after {
        content: "L";
        transform: matrix(-0.766044,-0.642788,-0.642788,0.766044,0,0);
        -webkit-transform: matrix(-0.766044,-0.642788,-0.642788,0.766044,0,0);
        border-color: #37AF6E;
        background-color: #37AF6E;
    } 

